import requests

for i in range(1,255):
    url="http://192-168-1-"+str(i)+".pvp3474.bugku.cn"
    # print(url)
    try:
        r=requests.get(url=url)
        if r.status_code==200:
            print("检测到存活ip："+url)
    except:
        pass